{include file="public/header" /}
<body class="gray-bg">
<div class="wrapper wrapper-content animated">
    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <h5>用户列表</h5>
        </div>
        <div class="ibox-content">
            <!--搜索框开始-->
            <div class="row">
                <div class="col-sm-12">
                    <form id="search-form" role="form" class="form-search form-inline" method="get" action="{:\\think\\Url::build('index')}">
                        <!-- 默认主键倒序排序 -->
                        <input type="hidden" name="_order" value="uid">
                        <input type="hidden" name="_sort" value="asc">
                        <div class="form-group">
                            <div class="input-group">
                                {one:menu menu="add" /}
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="user_name" class="sr-only">用户名称</label>
                            <input id="user_name" class="form-control" type="text" name="user_name" value="{$Request.param.user_name}" placeholder="用户名称"  >
                        </div>
                        <button class="btn btn-primary" type="submit"><i class="fa fa-search"></i> 搜索</button>
                    </form>
                </div>
            </div>
            <!--搜索框结束-->
            <div class="hr-line-dashed"></div>
            <!--动态加载数据部分-->
            <div id="ajax_table" class="ajax_table"></div>
        </div>
    </div>
</div>
<!-- 加载动画 -->
<div class="spiner-box">
    <div class="sk-spinner sk-spinner-three-bounce">
        <div class="sk-bounce1"></div>
        <div class="sk-bounce2"></div>
        <div class="sk-bounce3"></div>
    </div>
</div>
{include file="public/footer" /}
<script>
    //分页页码
    cur_page = 1;
    //分页获取地址
    base_url = "{:\\think\\Url::build('indexAjax')}";
    $(function () {
        //拉取初始数据
        ajax_get_table('search-form', cur_page);
    });
</script>
</body>
</html>
